﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EShop.BussinessObjects;
using EShop.Common;

public class BaseThemePage : System.Web.UI.Page
{
    protected override void OnPreInit(EventArgs e)
    {
        base.OnPreInit(e);
        if (Session["MyTheme"] == null)
        {
            Company _company = CGlobalData.GetCurrentCompany();
            Session.Add("MyTheme", _company.ThemeFolder);

            Page.Theme = ((string)Session["MyTheme"]);
        }
        else
        {
            Page.Theme = ((string)Session["MyTheme"]);
        }
    }
}
